layui.use(['form','jquery','layer','laydate'], function(){
    var form = layui.form;
    var $ = layui.jquery;
    var layer = layui.layer;
    var laydate = layui.laydate;

    laydate.render({
        elem:"#startDate",
        type:"date",
        trigger:"click"
    });
    laydate.render({
        elem:"#endDate",
        type:"date",
        trigger:"click"
    });
});